﻿using System.ComponentModel.DataAnnotations;

namespace Model.Entity.District
{
    /// <summary>
    /// 地区表
    /// </summary>
    public class TB_District : EntityBase
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Required, MaxLength(256)]
        public string Name { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        [Required]
        public int ParentId { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        [Required]
        public int Level { get; set; }
    }
}
